<?php
/* 
 * Copyright (c) 2018-2021   All rights reserved.
 * 
 * 创建时间：2021-05-15 15:39
 *
 * 项目：upload  -  $  - form.php
 *
 * 作者：liwei 
 */
?>


<div class="page page-formb">
    <div class="navbar page-admin-navbar adminbar navbar-bgcolor-red">
        <div class="navbar-inner">
            <div class="left">
                <a class="link tooltip-init" href="javascript:window.history.back();" data-tooltip="后退">
                    <svg class="icon" aria-hidden="true"><use xlink:href="#fa-back"></use></svg>
                </a>
                <a class="link tooltip-init" href="javascript:window.location.reload();" data-tooltip="刷新">
                    <svg class="icon" aria-hidden="true"><use xlink:href="#fa-refresh"></use></svg>
                </a>
                <a class="link">
                    <label for="dosubmit">
                        <svg class="icon" aria-hidden="true"><use xlink:href="#fa-save"></use></svg>
                    </label>
                </a>
            </div>
            <div class="title">
                <?php echo Lev::$app['title']?>
                <tips class="date" style="color:red !important;"></tips>
            </div>
            <div class="right">
            </div>
        </div>
    </div>

    <div class="page-content">
        <div class="form-mainb">
            <form id="saveForm" class="card" action="" method="post">
                <div class="card-footer">
                    <div class="item-title">
                        <input type="text" class="form-control disabled" value="标识符：<?php echo $iden?>" disabled>
                    </div>
                    <div class="item-after"><div class="hint-block"></div></div>
                </div>

                <?php echo \lev\widgets\inputs\inputsWidget::form($inputs, $inputsValues)?>

                <div class="card-footer">
                    <button id="dosubmit" class="button-fill button wd100 dosaveFormBtn">
                        <svg class="icon" aria-hidden="true"><use xlink:href="#fa-save"></use></svg>
                        保 存
                    </button>
                </div>
            </form>
        </div>
    </div>

</div>

<script>
(function () {
    'use strict';


    jQuery(document).on('click', '.button.dosaveFormBtn', function () {
        jQuery('#saveForm input, #saveForm textarea').each(function () {
            this.value && Levme.checkXssCode(this.value) &&
            (this.value = Levme.encodeHTML(this.value));
        });
    });

})();
</script>

